package org.rjxh.examfront.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.List;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 考试
 * </p>
 *
 * @author BA7LGJ
 * @since 2024-04-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("exam_examination")
@ApiModel(value="ExamExamination对象", description="考试")
public class ExamExamination implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试ID")
    @TableId(value = "exam_id", type = IdType.ASSIGN_ID)
    private Long examId;

    @ApiModelProperty(value = "考试标题")
    @TableField("exam_title")
    private String examTitle;

    @ApiModelProperty(value = "考试描述")
    @TableField("exam_desc")
    private String examDesc;

    @ApiModelProperty(value = "考试密码")
    @TableField("password")
    private String password;

    @ApiModelProperty(value = "考试时长 秒")
    @TableField("duration")
    private Integer duration;

    @ApiModelProperty(value = "起始时间")
    @TableField("start_time")
    private LocalDateTime startTime;

    @ApiModelProperty(value = "结束时间")
    @TableField("end_time")
    private LocalDateTime endTime;

    @ApiModelProperty(value = "状态")
    @TableField("status")
    private String status;

    @TableField(exist = false)
    private ExamRecord examRecord;

    @TableField(exist = false)
    private List<ExamQuestion> examQuestionList;

}
